package sctu.edu.java.year2016.team05.zengkun.day20160615.UserPackge;

import sctu.edu.java.year2016.team05.zengkun.day20160615.UserPackge.SearchPackge.Allquestion;

import javax.swing.*;
import java.io.*;
import java.util.Date;
import java.util.Scanner;

/**
 * Created by mike on 2016/6/15.
 */
public class Forhelp {


    public void help() {
        System.out.println("请输入您目前尚不能解决的问题：");
        File file = new File("D:/myproblem", "work.txt");
        String fileName="D:/myproblem/work.txt";
        try {
            file.createNewFile();
            FileWriter writer = new FileWriter(fileName, true);
            Scanner scanner=new Scanner(System.in);
            String content = scanner.nextLine();
            writer.write(content);
            writer.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
        System.out.println("\n\n\n输入exit返回上一级");
        Allquestion.return0();
    }
}




